import { getAction, deleteDataAction, putAction, postAction, downFilePost } from '@/api/manage'
const serviceName = 'incident-server'
const serviceName2 = 'alarm-server'
// 总数统计
const getTotal = params => getAction(`${serviceName}/focusBigScreen/getBigScreenToTypeTotal`, params)
// const getLeft1 = params => getAction(`${serviceName}/keyArea/top5`, params)
const getLeft1 = params => getAction(`${serviceName}/focusBigScreen/getAreaTop`, params)
const getLeft2 = params => getAction(`${serviceName}/focusBigScreen/getFocusTaskUserList`, params) 
const getLeft3 = params => getAction(`${serviceName}/focusBigScreen/getFocusIncidentTrend`, params)// 无接口
const getRight1 = params => getAction(`${serviceName2}/alarmCenterMessage/getAlarmAreaTop5`, params)
const getRight1keywords = params => getAction(`${serviceName}/keywords/ranking`, params)
// const getRight2 = params => getAction(`${serviceName}/focusBigScreen/getAlarmTypeRatio`, params)
const getRight2 = params => postAction(`${serviceName2}/alarmCenterMessage/getAlarmTypeRatio`, params)
const getRight3 = params => getAction(`${serviceName2}/alarmCenterMessage/getAlarmEventTrends`, params)
// 地图
const getMapData = params => getAction(`${serviceName}/focusBigScreen/getWxMapTotal`, params)
// 重点人案事件态势
const getBottom = params => getAction(`${serviceName}/focusBigScreen/getFocusCallFrequency`, params)

export {
  // 总数统计
  getTotal,
  getLeft1,
  getLeft2,
  getLeft3,
  getRight1,
  getRight1keywords,
  getRight2,
  getRight3,
  getMapData,
  getBottom
}